let form = layui.form
//-------------------------加载账户列表---------------------------------
function loadUserList() {
    // console.log(prama);
    // $.ajax({
    //     type: 'get',
    //     url: 'admin/users',
    // data: prama,
    // success: function (res) {
    axios.get(`admin/users`).then(function (res) {
        console.log(res);
        let {
            status,
            data
        } = res.data
        if (status === 0) {
            let str = ''
            data.forEach(function (item) {
                console.log(item);
                str += `<tr>
                    <td>haha</td>
                    <td>sadasd</td>
                    <td>
                      <button type="button" data-id=${item.id} data-name=${item.name} data-alias=${item.alias} class="layui-btn layui-btn-xs">编辑</button>
                      <button type="button"  data-id=${item.id} class="del layui-btn layui-btn-xs layui-btn-danger">删除</button>
                    </td>
                  </tr> `
            })
            $('tbody').html(str)
        }
    })
    // let str = ''

    $('.layui-table tbody').html(tags)
    //         console.log(res);
    // }
    // })
}